<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!--框架必需start-->
	<script type="text/javascript" src="<%=basePath%>libs/js/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath%>libs/js/framework.js"></script>
	<link href="<%=basePath%>libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
	<link rel="stylesheet" type="text/css" id="skin" prePath="<%=basePath%>"/>
	<link rel="stylesheet" type="text/css" id="customSkin"/>
	<!-- 表单验证start -->
	<script src="<%=basePath%>libs/js/form/validationRule.js" type="text/javascript"></script>
	<script src="<%=basePath%>libs/js/form/validation.js" type="text/javascript"></script>
	<!-- 表单验证end -->
	<!--框架必需end-->
	<link type="text/css" rel="stylesheet" href="css/dtree.css"/>
	<script language="javascript" type="text/javascript" src="<%=basePath%>js/dtree1.js"></script>
	<script language="javascript" type="text/javascript" src="<%=basePath%>js/showDtree.js"></script>
	<script language="javascript" type="text/javascript" src="<%=basePath%>js/formsub.js"></script>
	<script type="text/javascript">
		function funts(id,name){//作者单位
			var inVal = document.getElementById("InputPersonOrganID");
			inVal.value = name;
			document.getElementById("orgid").value = id;
			document.getElementById("dtreeDiv").style.display="none";
		}
		
		function selType(id){
			if(1 == id){	
				document.getElementById("fronturl").style.display="block";
				document.getElementById("adminurl").style.display="none";
				document.getElementById("istrue").style.display="block";
			}
			else if(0 == id){
			 	document.getElementById("fronturl").style.display="none";
				document.getElementById("adminurl").style.display="block";
				document.getElementById("istrue").style.display="none";
			}
		}
	</script>
 
</head>
<body style="text-align:center;margin:0px;width:100%;margin-bottom:10px">
<div id="dtreeDiv" style='text-align:left;background-color: #000000; overflow: yes; OVERFLOW-Y: auto; display: none; position: absolute; width: 180px; height: 200px; background-color: #FFFFFF;margin-left:150px'>
	 <script type="text/javascript">
		
		d = new dTree('d');
		d.add(0,-1,'导航栏目');		
		<s:property value="sbtree.toString()" escape="false"/>
		document.write(d);
		
	</script>
</div>
<div class="box1">
	<form id="form1" name="form1" action="Category_add.action" method="post" target="frmright">	
		<table border="0" cellspacing="0" cellpadding="3">
			<tr>
				<td>上级栏目：</td>
				<td align="left">
					<input type="hidden" name="category.parentid" id="orgid"/>
					<input type="text" class="validate[required]" style="width:150px;" id="InputPersonOrganID" onclick="showDtree(this);"/><font color="red">*</font>
				</td>
			</tr>
			<tr>
				<td>栏目名称：</td>
				<td align="left"><input id="name" type="text" name="category.name" class="validate[required]" style="width:150px;"/><font color="red">*</font></td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<input type="button" value="提 交 " onclick="submitform()"/>
					<input type="reset" value="取消" onclick="closeWin()"/>
				</td>
			</tr>
		</table>
	</form>
	<script>
	function closeWin(){
		top.Dialog.close()
	}
	</script>
</div>	
</body>
</html>